package top.infopub.job.cap.dao;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import top.infopub.job.cap.domain.RepayScheduleDomain;
import top.infopub.model.cap.*;

import java.math.BigDecimal;
import java.util.List;

@Repository
public interface RepaymentScheduleDao {
    List<RepaymentSchedule> selectByStatus();

    List<RepaymentScheduleSublist> selectSublist(@Param("id") String id);

    List<LoanContract> selectLoanContract(@Param("proCode") String proCode);

    void insertSement(FinanceReimbursement reimbursement);

    List<LoanFin> selectLoanFin(@Param("proCode")String proCode);

    void insertSub(FinanceRepaySub sub);

    List<RepayScheduleDomain> queryStayRepayList();

    int queryFinanceReimbCount(@Param("proCode") String proCode, @Param("setupFinancialId") String setupFinancialId);

    BigDecimal querySumRepayAmt(@Param("proCode") String proCode, @Param("setupFinancialId") String setupFinancialId);
}
